/*
 * @Author: your name
 * @Date: 2021-09-04 13:49:48
 * @LastEditTime: 2021-09-15 10:50:42
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \bigdate\src\ntils\echart.ts
 */
import * as echarts from 'echarts/core'
// echarts 图表按需引入减少性能
import {
    BarChart,
    LineChart,
    PieChart,
    MapChart,
    PictorialBarChart,
    RadarChart,
    GaugeChart,
} from 'echarts/charts'

import {
    TitleComponent,
    TooltipComponent,
    GridComponent,
    PolarComponent,
    AriaComponent,
    ParallelComponent,
    LegendComponent,
    RadarComponent,
    ToolboxComponent,
    DataZoomComponent,
    VisualMapComponent,
    TimelineComponent,
    CalendarComponent,
    GraphicComponent,
} from 'echarts/components'

import { SVGRenderer } from 'echarts/renderers'

echarts.use([
    LegendComponent,
    TitleComponent,
    TooltipComponent,
    GridComponent,
    PolarComponent,
    AriaComponent,
    ParallelComponent,
    BarChart,
    LineChart,
    PieChart,
    MapChart,
    RadarChart,
    GaugeChart,
    SVGRenderer,
    PictorialBarChart,
    RadarComponent,
    ToolboxComponent,
    DataZoomComponent,
    VisualMapComponent,
    TimelineComponent,
    CalendarComponent,
    GraphicComponent,
])

export default echarts
